Shader.get

Use that instead of setVertexVar or setFragmentVar if you wish more performance.

class Shader
get
(
string name
,
ShaderTypes type
)

Parameters

name string

The name of the variable

Return Value

Type: ShaderVar*

The Shader Variable reference

Meta